import type { ThemeConfig } from '@/types/theme';
import { createContext } from 'react';

import defaultSettings from '../../config/defaultSettings';
import { STATIC_PATHS } from '../../config/paths';

export const DefaultTheme: ThemeConfig = {
  layout: defaultSettings as any, // 使用类型断言避免复杂的类型兼容问题
  user: {
    avatar: 'https://gw.alipayobjects.com/zos/antfincdn/XAosXuNZyF/BiazfanxmamNRoxxVxka.png',
  },
  welcome: {
    bg: '', //
  },
  login: {
    bg: STATIC_PATHS.images.bg, // 登录页面也使用相同的背景图
  },
  footer: {
    copyright: '2025 测试管理有限责任公司',
  },
};

const ThemeContext = createContext<ThemeConfig>(DefaultTheme);

export default ThemeContext;
